
<p class="tags">{if $smarty.session.paging[$path_string].tags}<a href="?paging[tags]=">clear</a>{/if} Tags</p>

<ul>
{foreach from="`$tags`" item="tag"}
		<li class="{cycle values=",alt" name="tags"}">
		{if $tag.name|in_array:$smarty.session.paging[$path_string].tags}
			<a class="selected" href="?paging[tags]={foreach from="`$smarty.session.paging[$path_string].tags`" item="selected_tag"}{if $tag.name|in_array:$smarty.session.paging[$path_string].tags and $selected_tag!=$tag.name}{$selected_tag|escape:"url":"UTF-8"};{/if}{/foreach}">{$tag.name|escape:"html":"UTF-8"}</a>
		{else}
			<a href="?paging[tags]={$smarty.session.paging[$path_string].tags|@join:';'};{$tag.name|escape:"url":"UTF-8"}">{$tag.name|escape:"html":"UTF-8"} ({$tag.count})</a>
		{/if}
		</li>
{/foreach}
</ul>